package com.ruimei.entitys.enums;

import com.ruimei.util.CommUtil;

public enum NoticeType
{
  SCHOOL("学校通知"),  CLASS("班级通知"),  PARENTS("家长通知"),  PAY_COST("缴费通知"),
  PRIMARY("小学"),
  JUNIOR("初中");;
  
  private String name;
  
  public String getName()
  {
    return this.name;
  }
  
  public void setName(String name)
  {
    this.name = name;
  }

  public static NoticeType values(String noticeType){
    if (CommUtil.isEmpty(noticeType)){
      return null;
    }
    switch (noticeType){
      case "SCHOOL":{
        return SCHOOL;
      }
      case "CLASS":{
        return CLASS;
      }
      case "PARENTS":{
        return PARENTS;
      }
      case "PAY_COST":{
        return PAY_COST;

      }
      case "PRIMARY":{
        return PRIMARY;
      }
      case "JUNIOR":{
        return JUNIOR;
      }
      default:{
        return null;
      }
    }
  }
  
  public static NoticeType value(Object noticeType)
  {
    return values(String.valueOf(noticeType));
  }
  
  private NoticeType(String name)
  {
    this.name = name;
  }
  
  public static NoticeType matching(String ch)
  {
    switch (ch)
    {
    case "学校通知": 
      return SCHOOL;
    case "班级通知": 
      return CLASS;
    case "家长通知": 
      return PARENTS;
    case "缴费通知": 
      return PAY_COST;
    }
    return null;
  }
}


/* Location:              E:\360MoveData\Users\admin\Desktop\teacher_wap-0.0.1-SNAPSHOT.jar!\BOOT-INF\classes\com\ruimei\entitys\enums\NoticeType.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       0.7.1
 */